HSA Systems Endeavour Navigator format - will import both the old
version 4.x binary files, and the newer XML based ones.
- Only writes the new XML (5.0 and above) format. (use the .exp extension)
+ Only writes the new XML (5.0 and above) format. (use the .exp
+ extension)
+
+ vCARD
+
+ The vCard output is intended to be in a format that enables
+ waypoints to be viewed with an Apple iPod. This is achieved by
+ mapping waypoint fields into vCard fields that can be displayed
+ as 'Contacts' on the iPod. With the iPod mounted as a hard disk
+ (see your iPod manual for instructions), the resulting VCF
+ file should be moved into the iPod 'Contacts' folder. As an
+ alternative, Mac OS X users may prefer to drag the VCF file into
+ their address book and synchronize with the iPod using iSync. By
+ default hints are unencrypted; use the 'encrypt' option to
+ encrypt the hints.
DATA FILTERS
static FILE *file_out;
static void *mkshort_handle;
+static char *encrypt = NULL;
+
#define MYNAME "VCF"
static
arglist_t vcf_args[] = {
+ { "encrypt", &encrypt,
+ "Encrypt hints using ROT13", NULL, ARGTYPE_BOOL },
{0, 0, 0, 0, 0}
};
vcf_print(const char *s)
{
char *p;
+
if (!s)
return;
+
p = gstrsub(s, "\n", "\\n");
fputs(p, file_out);
xfree(p);
fprintf(file_out, "\\n");
vcf_print_utf(&wpt->gc_data.desc_long);
fprintf(file_out, "\\n\\nHINT:\\n");
- vcf_print(wpt->gc_data.hint);
+ if (encrypt) {
+ char *s = rot13(wpt->gc_data.hint);
+ vcf_print(s);
+ xfree(s);
+ } else {
+ vcf_print(wpt->gc_data.hint);
+ }
fprintf(file_out, "\nEND:VCARD\n");
}